<template>
  <el-form-item :label="componentDef.name" :prop="componentDef.code">
    <div v-if="formMode == 'edit' ">
      <el-input v-model="formData[componentDef.code]" placeholder="请输入内容" size="medium " ></el-input>
    </div>
    <div v-else>
      <div v-text="formData[componentDef.code]"></div>
    </div>
  </el-form-item>
</template>

<script>
export default {
  name: 'SfInput',
  props: {
    componentDef: {
      type: Object,
      required: true
    },
    formMode: {
      type: String,
      required: true
    },
    formData: {
      type: Object,
      required: true
    }
  },

  data(){
    return {
      



    }
  }
}


</script>